/**
 * 基本的响应类型
 */
export interface BaseRes {
  message: string;
  code: string;
  data: string;
}

/**
 * 单个用户的信息
 */
export interface User {
  college: string;
  direction: string;
  id: number;
  introduce: string;
  major: string;
  name: string;
  openid: string;
  phoneNum: string;
  qq: string;
  sex: string;
  // sno: string
  status: string;
  date: string;
  state?: string;
}

/**
 * 获取所有的用户
 */

export type UsersRes = BaseRes & {
  data: User[];
};

/**
 * tabel中的每一行的类型
 */
export interface TableUser {
  name: string;
  phoneNum: string;
  // sno: string,
  // qq: string;
  collegeAndMajor: string;
  sex: string;
  direction: string;
  status: string;
  openid: string;
  intro: string;
  duration: string;
}
